package br.com.fatec.cqr.view;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Label;

import javax.swing.JEditorPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

public class PainelNoSql {
	static JPanel result = new JPanel();
	static JEditorPane displayNoSql = new JEditorPane();

	public PainelNoSql() {

		BorderLayout border = new BorderLayout();
		result.setLayout(border);
		GridLayout grid = new GridLayout(1, 1);
		JPanel nosql = new JPanel();
		nosql.setLayout(grid);

		result.setFont(new Font("Arial", Font.PLAIN, 12));
		

		Label lblnoSQL = new Label("MongoDB - NO-SQL");
		lblnoSQL.setFont(new Font("Arial", Font.PLAIN, 16));

		JScrollPane scrollnoSql = new JScrollPane(displayNoSql);
		scrollnoSql
				.setVerticalScrollBarPolicy(scrollnoSql.VERTICAL_SCROLLBAR_ALWAYS);
		displayNoSql.setFont(new Font("Arial", Font.PLAIN, 20));
		displayNoSql.setEditable(false);

		// Adicionando os paineis e componentes em seus locais adequados
		nosql.add(scrollnoSql);
		result.add(nosql, BorderLayout.CENTER);
		result.add(lblnoSQL, BorderLayout.NORTH);
	}
}
